package com.dgw.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @program: spring-boot-swagger-chapter1
 * @description:
 * @author: Mr.Dai
 * @create: 2019-12-01 14:04
 **/
@Controller
@Api("接口说明")
public class HelloController {
    @ApiOperation(value = "hello方法 ",notes = "返回index")
    @GetMapping("/hello")
    public String hello(){
        return  "index";
    }
}
